<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>超级小蓉管理系统</title>
<meta name="author" content="DeathGhost" />
<link rel="icon" href="/xiaorong/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="resources/css/style.css" />
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<script src="resources/js/jquery.js"></script>
<script src="resources/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
	(function($) {
		$(window).load(
				function() {

					$("a[rel='load-content']").click(
							function(e) {
								e.preventDefault();
								var url = $(this).attr("href");
								$.get(url, function(data) {
									$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
									//scroll-to appended content 
									$(".content").mCustomScrollbar("scrollTo",
											"h2:last");
								});
							});

					$(".content").delegate(
							"a[href='top']",
							"click",
							function(e) {
								e.preventDefault();
								$(".content").mCustomScrollbar("scrollTo",
										$(this).attr("href"));
							});

					$("#menu dd a").click(function() {
						var $this = $(this);
						$("#menu dd a").removeClass("active");
						$this.addClass("active");
					});
				});
	})(jQuery);
</script>
</head>
<body>
	<!-- 头 -->
	<header>
		<h1>
			<a style="line-height: 70px;font-size: 26px;color: white" href="/xiaorong/index.do">@小容管理系统</a>
		</h1>
		<ul class="rt_nav">
			<li><a style="line-height: 36px;font-size: 20px;">欢迎你：${adminUsername }</a></li>
			<li><a target="iframe" href="admin/setting.do" class="set_icon">账号设置</a></li>
			<li><a href="/xiaorong/logout.do" class="quit_icon">安全退出</a></li>
		</ul>
	</header>

	<!-- 侧边栏 -->
	<aside class="lt_aside_nav content mCustomScrollbar"
		style="border-right:1px solid #19a97b">
		<ul id="menu">
			<c:if test="${fn:contains(authorities, 'order:list') }">
				<li>
					<dl>
						<dt>订单管理</dt>
						<dd>
							<a target="iframe" href="order/list.do">高风险订单</a>
						</dd>
					</dl>
				</li>
			</c:if>
			
			<c:if test="${fn:contains(authorities, 'admin:list') || fn:contains(authorities, 'role:list') }">
				<li>
					<dl>
						<dt>权限管理</dt>
						<c:if test="${fn:contains(authorities, 'admin:list') }">
							<dd>
								<a target="iframe" href="admin/list.do">管理员管理</a>
							</dd>
						</c:if>
						
						<c:if test="${fn:contains(authorities, 'role:list') }">
							<dd>
								<a target="iframe" href="role/list.do">角色管理</a>
							</dd>
						</c:if>
					</dl>
				</li>
			</c:if>
			
			<c:if test="${fn:contains(authorities, 'log:list') }">
				<li>
					<dl>
						<dt>日志管理</dt>
						<dd>
							<a target="iframe" href="log/list.do">日志列表</a>
						</dd>
					</dl>
				</li>
			</c:if>
			<li>
				<p class="btm_infor">© 小容版权所有</p>
			</li>
		</ul>
	</aside>

	<!-- 内容 -->
	<iframe id="iframe" name="iframe" frameborder="0"></iframe>

</body>
</html>
